package com.zjxf.base.bean.po;

import com.zjxf.base.common.IdEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 新闻与轮播
 *
 * @author ZhangWei
 * @date 2021/4/6/006 10:34
 */
@Setter
@Getter
@Entity
@Table(name = "cms_news")
public class CmsNews extends IdEntity {

    /**
     * 店铺id
     */
    @Column(name = "store_id", columnDefinition = "bigint(11) comment '商铺id'")
    private Long storeId;

    /**
     * 标题
     */
    @Column(name = "title", columnDefinition = "varchar(64) comment '标题'")
    private String title;

    /**
     * 简介
     */
    @Column(name = "intro",columnDefinition = "varchar(255) comment '简介'")
    private String intro;

    /**
     * 图片地址
     */
    @Column(name = "img_url",columnDefinition = "varchar(255) comment '图片地址'")
    private String imgUrl;

    /**
     * 内容
     */
    @Column(name = "content_html", columnDefinition = "longtext comment '内容'")
    private String contentHtml;

    /**
     * 显示状态
     */
    @Column(name = "show_state", columnDefinition = "bigint(3) comment '显示状态 0：隐藏，1：显示'")
    private Integer showState;

    /**
     * 类型（新闻还是轮播 0:新闻，1：轮播图）
     */
    @Column(name = "type", columnDefinition = "bigint(3) comment '类型 0：新闻，1：轮播图'")
    private Integer type;

    /**
     * 发布人
     */
    @Column(name = "publisher_id", columnDefinition = "bigint(11) comment '发布人id'")
    private Long publisherId;

    /**
     * 审核状态
     */
    @Column(name = "verify_status", columnDefinition = "bigint(3) comment '审核状态'")
    private Integer verifyStatus;

    /**
     * 审核人id
     */
    @Column(name = "verifier_id", columnDefinition = "bigint(11) comment '审核人id'")
    private Long verifierId;

    /**
     * 未通过原因
     */
    @Column(name = "reason",columnDefinition = "varchar(255) comment '原因'")
    private String reason;


}
